import os
import time

source_list = [r'D:\mysite',r'D:\Apps']
target_dir = r'D:\zipTest'
target = target_dir + time.strftime('%Y%m%d%H%M%S') + '.zip'
zip_command = 'zip -qr %s %s' % (target , ' '.join(source_list))
if os.system(zip_command) == 0:
	print 'backup successful'
else:
	print 'backup fail'
